/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package plar.Elements;

/**
 *
 * @author spok
 */
import java.awt.Point;
import java.awt.Rectangle;
import plar.*;
import plar.Actions.*;

        
public class Score extends Element {
    
    public Score(int i,Rectangle pos)
    {
        super(i,pos);
    }

    public Score(int i,Rectangle pos,int p)
    {
        this(i,pos);
        Sprites s = new Sprites(new Sprite("icecream0.png"));
        s.addSprite(new Sprite("icecream1.png"));
        
  
         actions.put("show",new ElementShow());
         ((Action)actions.get("show")).setSprites(s);
         
         actions.put("collision",new Collision(this));
    }
    

    public Score(int i,Rectangle pos,int p, Sprites s)
    {
         this(i,pos,p);
         ((Action)actions.get("show")).setSprites(s);
    }
}
